package com.example.canteen.converter;

import com.example.canteen.dao.PrivateRoom;
import com.example.canteen.dto.PrivateRoomDTO;

public class PrivateRoomConverter {
    public static PrivateRoomDTO convertPrivateRoom(PrivateRoom privateRoom) {
        PrivateRoomDTO privateRoomDTO = new PrivateRoomDTO();
        privateRoomDTO.setId(privateRoom.getId());
        privateRoomDTO.setName(privateRoom.getName());
        return privateRoomDTO;
    }

    public static PrivateRoom convertPrivateRoom(PrivateRoomDTO privateRoomDTO) {
        PrivateRoom privateRoom = new PrivateRoom();
        privateRoom.setId(privateRoomDTO.getId());
        privateRoom.setName(privateRoomDTO.getName());
        return privateRoom;
    }
}
